package per.chenyl.framework.persistence.entity;

import per.chenyl.framework.persistence.entity.anno.Id;
import per.chenyl.framework.persistence.entity.anno.NotEmpty;
import per.chenyl.framework.persistence.entity.anno.Notnull;

@per.chenyl.framework.persistence.entity.anno.BaseEntity
public class BaseEntity {
    @Id
    @NotEmpty(message = "唯一ID不可为空！")
    protected String guid;
    @Id
    @NotEmpty(message = "区划不可为空！")
    private String province;
    @Id
    @Notnull(message = "年度不可为空！")
    private Integer year;

    public String getGuid() {
        return guid;
    }

    public void setGuid(String guid) {
        this.guid = guid;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public Integer getYear() {
        return year;
    }

    public void setYear(Integer year) {
        this.year = year;
    }
}
